package com.software.seakdream.repository;

import com.software.seakdream.entity.Integral;
import com.software.seakdream.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//积分界面Repository
@Mapper
@Repository
public interface IntegralRepository {

    public Integer findUserPointById(String userId);

    Integer findBonusByIntegralId(Integer integralId);


    List<Integral> findAllIntegral();

    void addPointsWhenFinish();

    void updateIntegral(Integral integral);

}
